`
https://leetcode.cn/problems/minimum-number-of-arrows-to-burst-balloons/
`

/**
 * @param {number[][]} points
 * @return {number}
 */
var findMinArrowShots = function (points) {
  if (points.length === 0) return 0;
  points.sort((a, b) => a[1] - b[1]);
  let count = 1;
  let x_end = points[0][1];

  for (let interval of points) {
    let start = interval[0];
    // 把 >= 改成 > 就行了
    if (start > x_end) {
      count++;
      x_end = interval[1];
    }
  }
  return count;
};